#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {

	int row;
	scanf("%d", &row);
	for (int i = 1; i <= row; i++) {
		for (int j = 1; j <= i; j++) {
			printf("%dx%d=%d   ", i, j, i * j);
		}
		printf("\n");
	}
	return 0;
}